package com.example.wan1.second;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.wan1.R;
import com.example.wan1.model.ArticleBean;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/***
 * 创建时间：2020/5/1 22:44
 * 创建人：10850
 * 功能描述：
 */
public class ArticleAdapter extends BaseQuickAdapter<ArticleBean, BaseViewHolder> {
    public ArticleAdapter(int layoutResId, @Nullable List<ArticleBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, ArticleBean item) {
        helper.setText(R.id.item_tv, item.getTitle());
    }
}
